--翻译
return function (msg)
    local q = message:gsub("翻译","")
    if q == "" then
        return "要翻译什么呀,告诉本喵,我帮你翻译"
    end
    local salt = os.time()
    local sign = md5.sumhexa("20191219000367790"..q..salt.."1N8mPJJT09hQX79BFHQl")
    local l=string.len(q)
    for i=1,l do
        local asc2=string.byte(string.sub(q,i,i))
        if asc2>127 then
            local html = apiHttpGet("http://api.fanyi.baidu.com/api/trans/vip/translate","q="..q.."&from=auto&to=en&appid=20191219000367790&salt="..salt.."&sign="..sign)
            return html:match("dst\":\"(.-)\"}")
        end
    end
    local html = apiHttpGet("http://api.fanyi.baidu.com/api/trans/vip/translate","q="..q.."&from=auto&to=zh&appid=20191219000367790&salt="..salt.."&sign="..sign)
    return apiUnitoutf8(html:match("dst\":\"(.-)\"}"))
end

